<?php
header("Content-type: text/html; charset=utf-8"); 
include 'all.class.php';
$key="anshijie";//解密秘钥
if (empty($_POST["tiquid"]))
{
	$tiqu=304;	
}else {
	$tiqu=$_POST["tiquid"];
}
mysql_connect("$db_host","$db_user","$db_password");
mysql_select_db("$db_name");
echo '
<head>
<link href="sy.css" rel="stylesheet" type="text/css" />
';
bdtj();//百度统计
echo '</head>

<body>
<table width="720" border="1" align="center">
  <tr>
  <td>请输入提取提取id</td>
  <td>
      <form method="post" action="tiqu.php"> 
		<input type="text" name="tiquid" />
			<input type="submit" /></form>
</td>
    <td class="tijiao"> <a href="gx.php">提交地址点我提交网盘地址</td>
  </tr>
</table>
<table width="720" border="1" align="center" cellspacing="2">
  <tr>
    <td width="50">ID</td>
    <td width="300">文件名</td>
    <td width="100">网盘地址</td>
    <td width="100">一键下载</td>
    <td width="70">解压密码</td>
  </tr>';
$sql="select * from url2 where id=$tiqu";

mysql_query("set names utf8");
$result=mysql_query($sql);
	while ($row = mysql_fetch_array($result, MYSQL_NUM)) 
 		{
 			echo "<tr>";
 		
       			 printf ("<td> %s</td>", $row[0]);
       		echo '<td><div style="width:300px; height:20px; overflow:hidden;">';
       			 printf ("%s</div></td>", $row[1]) ;
       			 
    			$urltemp=str_ireplace("http://", "", $row[2]);
				$url='http://'.$urltemp;
       			 echo '<td><div style="width:80px; height:20px; overflow:hidden;"><a href="';
       				echo "http://www.baidu.com";
       				echo '">需登录查看</div></td>';
       			echo '<td>
       				<form method="post" action="download.php"> 
<input type="hidden" name="download" value="';
       			$encrypt = passport_encrypt($row[2],$key); 
       			echo $encrypt;
      			echo '"> 
<input type="submit" name="submit" value="看看"> 
</form> 
       			</td>';
      			echo '<td><div style="width:200px; height:20px; overflow:hidden;">';
       			 printf ("%s</div></td>",  $row[3]);
       			 
        
        	echo "</tr>";
    }
    
  	echo '
		</table>';
	
	
	

	
	echo '</body>
				</html>';
  